package example

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"nood/app/service"
	"nood/noodframe/noodlog"
)

func Take(c *gin.Context) {
	noodlog.Debug("Take start")
	//在服务层实现逻辑
	service.TakeService(c)
	resp := gin.H{
		"title": "nood 框架",
	}
	c.HTML(http.StatusOK, "game_take.html", resp)
}

func TakeWS(c *gin.Context) {
	noodlog.Debug("TakeWS start")
	resp := gin.H{
		"title": "nood 框架",
	}
	c.HTML(http.StatusOK, "game_takews.html", resp)
}
